/* import request from "./http";

export function getintroduce(){
    // http://www.jumeiglobal.com/ajax_new/dealinfo?
    // hash_id=ht20191120135354p5002978
    // &callback=static_call
    return request({
        url:"home/skin/container",
        method:"get",
        // params:{
            
        // }
    })
}
 */
import request from "./http";

// 获取首页数据
export function getSearchData(){
  return request({
    // https://search.mall.360.cn/search/q?q=1
      // url:"/search/q?q=%E8%AE%B0%E5%BD%95%E4%BB%AA",
      url:"home/skin/container",
      method: "get",
       params: {
         "q":"h5",
         "format":"floor"
      }
  })
}
//搜索页面
export function getSearchPageData(q){
  return request({
    // https://search.mall.360.cn/search/q?q=1
      // url:"/search/q?q=%E8%AE%B0%E5%BD%95%E4%BB%AA",
      url:"search/search/q",
      method: "get",
       params: {
         "q": q,
      }
  })
}

// https://mall.360.cn/app/getAppCategory

//   https://mall.360.cn/skin/container?v=lightmode&p=h5&format=frame
// 获取详情页的数据
export function getHeadData(point,id){
  return request({
    // https://search.mall.360.cn/search/q?q=1
      // url:"/search/q?q=%E8%AE%B0%E5%BD%95%E4%BB%AA",
      url:"head/itemDetail/itemInfo",
      method: "get",
       params: {
        "rewardType":point,
        "itemId":id
      }
  })
}

// https://m.mall.360.cn/itemDetail/itemInfo?rewardType=point&itemId=5fdc1471ad4cd516bae844ec